/*=========================================================================================
  File Name: store.js
  Description: Vuex store
==========================================================================================*/

import Vue from 'vue'
import Vuex from 'vuex'

import state from "./state"
import getters from "./getters"
import mutations from "./mutations"
import actions from "./actions"

// import moduleSiteResoures from "./siteResource/moduleSiteResource.js";
import mearsuringPointSettingModule from "./mearsuringPointSetting/mearsuringPointSettingModule";
import bridgeRecords from "./bridgeRecords/bridgeRecords.js";
import realMonitorModule from "./realMonitor/realMonitorModule";
import realLoadModule from "./realLoad/realLoadModule";
import statisticalModule from "./statistical/statisticalModule";
import environmentModule from "./enviroment/environmentModule";
import structureModule from "./structure/structureModule";
import stressModule from "./stress/stressModule";
import displaceMentModule from "./displaceMent/displaceMentModule";

Vue.use(Vuex)

export default new Vuex.Store({
  getters,
  mutations,
  state,
  actions,
  modules: {
    // siteResources: moduleSiteResoures
    mpsModule: mearsuringPointSettingModule,
    bridgeRecords: bridgeRecords,
    realMonitor: realMonitorModule,
    realLoad: realLoadModule,
    statistical: statisticalModule,
    environment: environmentModule,
    structure: structureModule,
    stress: stressModule,
    displaceMent: displaceMentModule
  },
  strict: process.env.NODE_ENV === 'production'
})
